package com.ball.dev.controller;


import com.ball.common.dtos.ResponseResult;
import com.ball.dev.entity.po.BallButton;
import com.ball.dev.entity.vo.ButtonVo;
import com.ball.dev.service.IBallButtonService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * 投篮教学详细
 * </p>
 *
 * @author lou
 * @since 2024-04-30
 */
@RestController
@RequestMapping("/ball")
@RequiredArgsConstructor
public class BallButtonController {
    private final IBallButtonService ballButtonService;
    @GetMapping()
    public ResponseResult getBallButton(@RequestParam("number") String number) {
        return ballButtonService.getBallButton(number);
    }

    @PostMapping()
    public ResponseResult addBallButton(@RequestBody BallButton button) {
        return ballButtonService.addBallButton(button);
    }

}
